<!--<?php
require_once template('header'); 
require_once template('left'); 
print <<<EOT
<!-- -->
		<div id="right">
			<div id="left1">
				<!-- flash 开始 -->
				<div id="flash">
				<a target=_self href="javascript:goUrl()">
				<span class="f14b">
				<script type="text/javascript">
				var focus_width='$focus_width'
				var focus_height='$focus_height'
				var text_height='$text_height'
				var swf_height = '$swf_height'
				var pics='$pics'
				var links='$links'
				var texts='$texts'
				document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
				document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/banner/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
				document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
				document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
				document.write('<embed src="images/banner/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
				
				if (getCookie("mvmmall") != "done")	{
				 $popup_list
				}
				</script>
				</span>
				</a>
				</div>
				<!-- flash 结束 -->

				<div class="clear"></div>
				<h3 class="lef1" style="padding:16px 16px 0 10px; height:28px;"><a href="$mm_url[goods_new]"><img src="$imgpath/more.gif" /></a><img src="$imgpath/center_title1.gif" /></h3>
				<!-- 最新商品开始 -->
				<div class="pro pro8">
					<ul>
<!--5表示调用5个商品-->
<!--
EOT;
foreach (GetGoods('new',4) as $val){
print <<<EOT
-->
						<li><p><a href="$val[url]"><img src="$val[photo]" width="$cf_indexw" height="$cf_indexh" alt="$val[title]" /></a></p>
						<p class="sn"><a href="$val[url]" title="$val[title]" >$val[subject]</a>$val[addoption]</p>
						<p class="sp">$lang[buy_price]：<span>$val[goods_sale_price]</span></p>
						</li>
<!--
EOT;
} print <<<EOT
-->	
					</ul>
				</div>
				<!-- 最新商品结束 -->

				<div class="clear"></div>
				<h3 class="lef1" style="padding:16px 16px 0 10px; height:28px;"><a href="$mm_url[goods_best]"><img src="$imgpath/more.gif" /></a><img src="$imgpath/center_title2.gif" /></h3>
				<!-- 最新商品开始 -->
				<div class="pro pro8">
					<ul>
<!--5表示调用5个商品-->
<!--
EOT;
foreach (GetGoods('best',4) as $val){
print <<<EOT
-->
						<li><p><a href="$val[url]"><img src="$val[photo]" width="$cf_indexw" height="$cf_indexh" alt="$val[title]" /></a></p>
						<p class="sn"><a href="$val[url]" title="$val[title]" >$val[subject]</a>$val[addoption]</p>
						<p class="sp">$lang[buy_price]：<span>$val[goods_sale_price]</span></p>
						</li>
<!--
EOT;
} print <<<EOT
-->	
					</ul>
				</div>
				<!-- 最新商品结束 -->
				
				<div class="clear"></div>
				<h3 class="lef1" style="padding:16px 16px 0 10px; height:28px;"><a href="$mm_url[goods_hot]"><img src="$imgpath/more.gif" /></a><img src="$imgpath/hot.gif" /></h3>
				<!-- 最新商品开始 -->
				<div class="pro pro8">
					<ul>
<!--5表示调用5个商品-->
<!--
EOT;
foreach (GetGoods('hot',4) as $val){
print <<<EOT
-->
						<li><p><a href="$val[url]"><img src="$val[photo]" width="$cf_indexw" height="$cf_indexh" alt="$val[title]" /></a></p>
						<p class="sn"><a href="$val[url]" title="$val[title]" >$val[subject]</a>$val[addoption]</p>
						<p class="sp">$lang[buy_price]：<span>$val[goods_sale_price]</span></p>
						</li>
<!--
EOT;
} print <<<EOT
-->	
					</ul>
				</div>
				<!-- 最新商品结束 -->
				<div class="clear"></div>
				<div class="lef2">
					<h3><img src="$imgpath/cxsp.gif" /></h3>
					<ul>
<!--
EOT;
foreach(brand_list(0,12,24) as $val){
print <<<EOT
-->			
			
				<li><a href="$val[url]"><img src="$val[photo]" alt="$val[title]"/></a></li>
<!--
EOT;
} print <<<EOT
-->	
					</ul>
				</div>
			</div>
			
			<div id="right1">
				<!-- 公告开始 -->
				<h3><a href="$mm_url[notice]"><img src="$imgpath/notice_title.gif" /></a></h3>
				<div class="le6">
					<ul class="notice">			
<!--
EOT;
foreach(GetBoard('notice',0,6,20) as $val){
print <<<EOT
-->
						<li><span>$val[date]</span><a href="$val[url]" title="$val[title]">$val[subject]</a></li>
<!--
EOT;
} print <<<EOT
-->	
					</ul>
				</div>
				<!-- 公告结束 -->
			
			<h3 class="le3 le5"><img src="$imgpath/order.gif" /></h3>
			<!-- 订单搜索开始 -->
			<div class="le6 ri1">
				<p><input name="order_num" id="order_num" type="text" maxlength="" class="inp" value="请输入订单号码" onclick="this.value = ''" /> 
				<input name="order_quey" id="order_quey" type="image" src="$imgpath/go1.gif" align="absmiddle" /></p>
				<div class="ri11" style="display:none;" id="order_result">
				$lang[buy_paycode]: <strong><span id="ordersn" >$order_info[ordersn]</span></strong><br />
                $lang[send_code]: <span id="delivery_code">$order_info[delivery_code]</span><br />
               	$lang[buyer_name]: <span id="consignee"> $order_info[consignee]</span><br />
               	$lang[buy_codestate]: <span id="status">$order_info[status]</span><br />
              	$lang[sendtime]: <span id="sendtime">$order_info[sendtime]</span>
				</div>
			</div>
			
			<!-- 销售排行开始 -->
			<h3 class="le3 le5"><img src="$imgpath/sell.gif" /></h3>
			<div class="le6">
				<ul id="sale">		
<!--
EOT;
foreach ($sell_goods as $val){
$curcol++;
print <<<EOT
-->
					<li><strong>$val[num]</strong><span>$val[mall_price]</span><a href="$val[url]" title="$val[title]">$val[subject]<p onclick="javascript:window.open('$val[url]')" style="cursor:pointer;"><img src="$val[photo]" alt="$val[title]"/></p></a></li>
<!--
EOT;
} print <<<EOT
-->				
				</ul>
			</div>
			<!-- 销售排行结束 -->
			
			<!-- 标签开始 -->
			<h3 class="le3 le5"><a href="tag.php?action=list"><img src="$imgpath/tag.gif" /></a></h3>
			<div class="le6">
				<ul class="sybq">
<!--
EOT;
foreach ($goods_tag as $val){
print <<<EOT
-->					
					<li style="width:48%;">$val[tag_name]</li>
<!--
EOT;
} print <<<EOT
-->	
				</ul>
			</div>
			
			<!-- 客户留言开始 -->
			<h3 class="le3 le5"><a href="board.php?action=freeboard"><img src="$imgpath/right_menu_01.gif" /></a></h3>
			<div class="le6">
				<ul class="le22">			
<!--
EOT;
foreach(GetBoard('freeboard',0,10,30) as $val){
print <<<EOT
-->
					<li><a href="$val[url]" title="$val[title]">$val[subject]</a></li>
<!--
EOT;
} print <<<EOT
-->	
				</ul>
			</div>
				
		
		<!-- 在线投票开始 -->
<!--
EOT;
if($po_list[poll_num]){
print <<<EOT
-->
		<h3 class="le3 le5"><img src="$imgpath/vote.gif" align="absmiddle" /> </h3>
		<div class="le1 le6">
			<h5>$po_list[poll_question]</h5>
			<p id="tp2">
			$poll_view
            </p>
			<p id="tp">
			<input onclick="javascript:submit_vote()" name="" type="button" value="$lang[vote_send]" class="btn2" />
			<input onclick="javascript:view_vote()" name="" type="button" value="$lang[vote_see]" class="btn2" />
			</p>
		</div>
		<!-- 在线投票结束 -->
<!--
EOT;
} print <<<EOT
-->
			</div>
		</div>
		
		<div class="clear"></div>
		<!-- 友情链接开始 -->
		<div id="flink">
			<p>
<!--
EOT;
foreach ($friend_links as $val){
if($val[logo]!=""){
print <<<EOT
-->
			<a href="$val[url]" title="$val[note]" target="_blank"><img src="$val[logo]" /></a>
<!--
EOT;
} }print <<<EOT
-->
			</p>
			<p>
<!--
EOT;
foreach ($friend_links as $val){
if($val[logo]==""){
print <<<EOT
-->
			<a href="$val[url]" title="$val[note]" target="_blank">[$val[title]]</a>
<!--
EOT;
} }print <<<EOT
-->
			</p>
		</div>
		<!-- 友情链接结束 -->
<!--
EOT;
?>-->	
	
	
